package com.suse.warmstill.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 黄靖
 * @author 2022-10-25 19:12
 * description:
 **/
@Data

public class UserPostVo extends BaseVo {

    private Long id;

    @NotNull(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotNull(message = "用户名能为空")
    @ApiModelProperty("真实姓名")
    private String relName;

    @NotNull(message = "电话不能为空")
    @ApiModelProperty("电话")
    private String phone;

    @NotNull(message = "部门 id不能为空")
    @ApiModelProperty("部门 id")
    private Long depId;


    @ApiModelProperty("详细信息的id，可以为空")
    private Long infoId;


    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("性别,0是男，1是女")
    private Integer sex;

    @ApiModelProperty("角色集合")
    private List<Long> roleList;


    @ApiModelProperty("生日")
    private String birth;


}
